package com.yztstudy.Mapper;

import com.yztstudy.Entity.Desk;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
 * Desk的数据访问层接口
 */

@Mapper
public interface DeskMapper {

    public abstract List<Desk> getDesks(String name); //查询餐桌

    public abstract Integer addDesk(Desk desk); //新增餐桌

    public abstract Integer deleteDesk(Integer id); //删除餐桌

    public abstract Integer activeDesk(Integer id); //激活餐桌

    public abstract Integer orderState(Desk desk); //预定

    public abstract Integer cancelState(Desk desk); //取消

    public abstract List<Desk> getFreeDesks(); //查询所有的空闲餐桌

    public abstract Desk getDeskByID(Integer id); //根据ID查询餐桌

}
